package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;

@TableName("t_store_stat")
public class StoreStat extends Model<StoreStat> {

    private static final long serialVersionUID = 1L;

    @TableId(value="storeid", type= IdType.INPUT)
    private Long storeid;

    private Long mpid;

    private Long renqi = 0l;
    private Long views = 0l;

    private String storename;
    private String storepic;

    private Integer goods = 0;
    private Integer huodongs = 0;
    private Integer users= 0;

    private Integer orders= 0;
    @TableField(exist = false)
    private Integer yxorders= 0;
    private Integer refunds= 0;
    private Integer hexiaos= 0;

    private Integer visitors= 0;
    private Integer subscribes= 0;
    private Integer notifies= 0;

    private BigDecimal total = new BigDecimal(0);
    private BigDecimal mshoukuan = new BigDecimal(0);

    @TableField(exist = false)
    private BigDecimal dairuzhang;
    @TableField(exist = false)
    private BigDecimal keyong;

    @TableField(exist = false)
    private Integer mchs;

    private Date modifytime;

    public Long getStoreid() {
        return storeid;
    }

    public void setStoreid(Long storeid) {
        this.storeid = storeid;
    }

    public Long getMpid() {
        return mpid;
    }

    public void setMpid(Long mpid) {
        this.mpid = mpid;
    }

    public Long getViews() {
        return views;
    }

    public void setViews(Long views) {
        this.views = views;
    }

    public String getStorename() {
        return storename;
    }

    public void setStorename(String storename) {
        this.storename = storename;
    }

    public String getStorepic() {
        return storepic;
    }

    public void setStorepic(String storepic) {
        this.storepic = storepic;
    }

    public Integer getGoods() {
        return goods;
    }

    public void setGoods(Integer goods) {
        this.goods = goods;
    }

    public Integer getUsers() {
        return users;
    }

    public void setUsers(Integer users) {
        this.users = users;
    }

    public Integer getOrders() {
        return orders;
    }

    public void setOrders(Integer orders) {
        this.orders = orders;
    }

    public Integer getRefunds() {
        return refunds;
    }

    public void setRefunds(Integer refunds) {
        this.refunds = refunds;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }

    public BigDecimal getMshoukuan() {
        return mshoukuan;
    }

    public void setMshoukuan(BigDecimal mshoukuan) {
        this.mshoukuan = mshoukuan;
    }

    public Date getModifytime() {
        return modifytime;
    }

    public void setModifytime(Date modifytime) {
        this.modifytime = modifytime;
    }

    public Integer getHexiaos() {
        return hexiaos;
    }

    public void setHexiaos(Integer hexiaos) {
        this.hexiaos = hexiaos;
    }

    public Long getRenqi() {
        return renqi;
    }

    public void setRenqi(Long renqi) {
        this.renqi = renqi;
    }

    public BigDecimal getDairuzhang() {
        return dairuzhang;
    }

    public void setDairuzhang(BigDecimal dairuzhang) {
        this.dairuzhang = dairuzhang;
    }

    public BigDecimal getKeyong() {
        return keyong;
    }

    public void setKeyong(BigDecimal keyong) {
        this.keyong = keyong;
    }

    public Integer getHuodongs() {
        return huodongs;
    }

    public void setHuodongs(Integer huodongs) {
        this.huodongs = huodongs;
    }

    public Integer getMchs() {
        return mchs;
    }

    public void setMchs(Integer mchs) {
        this.mchs = mchs;
    }

    public Integer getYxorders() {
        return yxorders;
    }

    public void setYxorders(Integer yxorders) {
        this.yxorders = yxorders;
    }

    public Integer getVisitors() {
        return visitors;
    }

    public void setVisitors(Integer visitors) {
        this.visitors = visitors;
    }

    public Integer getSubscribes() {
        return subscribes;
    }

    public void setSubscribes(Integer subscribes) {
        this.subscribes = subscribes;
    }

    public Integer getNotifies() {
        return notifies;
    }

    public void setNotifies(Integer notifies) {
        this.notifies = notifies;
    }

    @Override
    protected Serializable pkVal() {
        return this.storeid;
    }

    @Override
    public String toString() {
        return "StoreStat{" +
                "storeid=" + storeid +
                ", mpid=" + mpid +
                ", views=" + views +
                ", storename='" + storename + '\'' +
                ", storepic='" + storepic + '\'' +
                ", goods=" + goods +
                ", users=" + users +
                ", orders=" + orders +
                ", refunds=" + refunds +
                ", total=" + total +
                ", mshoukuan=" + mshoukuan +
                ", modifytime=" + modifytime +
                '}';
    }
}
